Skip to content

use oncecell to store computed start_pos instead of storing it on shorter-lived CursorData#10

Merged
sunshowers merged 6 commits intosunshowers-code:mainfrom
inanna-malick:cache_start_pos_on_buflist
Apr 19, 2023
Merged

use oncecell to store computed start_pos instead of storing it on shorter-lived CursorData#10
sunshowers merged 6 commits intosunshowers-code:mainfrom
inanna-malick:cache_start_pos_on_buflist

Conversation

@inanna-malick
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Apr 19, 2023

Codecov Report

Merging #10 (347b2f9) into main (c8b1b41) will decrease coverage by 0.04%.
The diff coverage is 91.52%.

@@            Coverage Diff             @@
##             main      #10      +/-   ##
==========================================
- Coverage   82.71%   82.68%   -0.04%     
==========================================
  Files           7        7              
  Lines         677      693      +16     
==========================================
+ Hits          560      573      +13     
- Misses        117      120       +3     
Impacted Files Coverage Δ
src/imp.rs 90.95% <86.95%> (-0.53%) ⬇️
src/cursor/mod.rs 87.62% <94.44%> (-0.42%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Cargo.toml Outdated
[dependencies]
bytes = "1.3.0"
futures-io-03 = { package = "futures-io", version = "0.3.25", optional = true }
once_cell = "1.17"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably going to have to reduce the version requirement here because we advertise support against pretty old versions of rustc.

Copy link
Contributor

@sunshowers sunshowers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sunshowers sunshowers merged commit cda51bc into sunshowers-code:main Apr 19, 2023
@inanna-malick inanna-malick deleted the cache_start_pos_on_buflist branch May 3, 2023 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants